package com.vhall.component.entity.goods.goods;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.vhall.component.framework.common.annotation.ParamName;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author jingwen.li
 */
@Data
public class GoodsPushScreenReqVO implements Serializable {

    @NotNull(message = "id参数不允许为空！")
    @ParamName("id")
    private Integer id;

    @NotNull(message = "il_id参数不允许为空！")
    @ParamName("il_id")
    @JsonProperty(value = "il_id")
    private Integer ilId;

    @JsonProperty("serial_number")
    @ParamName("serial_number")
    private Integer serialNumber;

    /**
     * 推屏时间，单位秒
     */
    @NotNull(message = "screen_second参数不允许为空！")
    @ParamName("screen_second")
    @JsonProperty(value = "screen_second")
    @Min(value = 1, message = "推屏时间不允许小于1秒！")
    private Integer screenSecond;
}
